const { override, fixBabelImports, addLessLoader,addPostcssPlugins } = require('customize-cra');
module.exports = override(
    fixBabelImports('import', {
        //如果是mobile的话, 将 libraryName 的值设置为 antd-mobile 即可
        libraryName: 'antd-mobile',
        libraryDirectory: 'es',
        style: true,
    }),
    addLessLoader({
        javascriptEnabled: true,
    }),
    //此处375是设计稿宽度
	addPostcssPlugins([require("postcss-px2rem")({ remUnit: 375/10 })])
);